Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish to external VCD ORG and subscribe attributes on OrgGeneralSettings struct #444

Merged

Conversation

mikeletux
Copy link
Contributor

@mikeletux mikeletux commented Mar 7, 2022

Description

In order to fulfill the issue from the Terraform provider for VCD vmware/terraform-provider-vcd#775 we needed to add a couple of attributes to OrgGeneralSettings. These are CanPublishExternally and CanSubscribe.

Detailed description

The current go-vcd SDK lacks of functionality for reading and changing some ORG values regarding catalogs. At the moment it is possible to read and change the option "Share catalogs to other organizations" through the attribute ´AdminOrg.OrgSettings.OrgGeneralSettings.CanPublishCatalogs´ but for options "Publish external catalogs" and "Subscribe to external catalogs" is not possible.

This PR adds support for both options through the attributes CanPublishExternally and CanSubscribe from OrgGeneralSettings struct.

image

Miguel Sama added 2 commits March 7, 2022 16:07
…alSettings` struct

Signed-off-by: Miguel Sama <msama@vmware.com>
Signed-off-by: Miguel Sama <msama@vmware.com>
@mikeletux mikeletux requested a review from adambarreiro March 7, 2022 15:22
@mikeletux mikeletux self-assigned this Mar 7, 2022
Signed-off-by: Miguel Sama <msama@vmware.com>
@mikeletux mikeletux marked this pull request as ready for review March 8, 2022 14:23
Copy link
Collaborator

@adambarreiro adambarreiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Collaborator

@lvirbalas lvirbalas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming the ordering of XML fields in types.go is correct, LGTM! :)

For reference (just as a note):
#436 (comment)

@mikeletux mikeletux merged commit 6f9b443 into vmware:main Mar 15, 2022
@mikeletux mikeletux deleted the 775-enable-disable-publish-ext-vcd-org branch March 15, 2022 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants